﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media.Effects;

namespace SilverlightWebcamEncoder.Views
{
    public partial class MediaUploadView : UserControl
    {
        public MediaUploadView()
        {
            InitializeComponent();
        }

        private void facebookSelectButton_Click(object sender, RoutedEventArgs e)
        {

        }

        private void youtubeSelectButton_Click(object sender, RoutedEventArgs e)
        {
            var fb = new YouTubeUploadView();

            Application.Current.RootVisual.Effect = new BlurEffect() { Radius = 6 };
            fb.Closed += delegate
            {
                Application.Current.RootVisual.Effect = null;
            };

            fb.Show();
        }
    }
}
